#include <stdio.h>

typedef struct LNode *List
struct LNode{
	ElementType Data[MAXSIZE];
	int Last;
};
struct Node L;
List PtrL;

List MakeEmpty()//初始化
{
	List PtrL;
	PtrL = (List)malloc(sizeof(struct LNode));
	PtrL -> Last = -1;
	return PtrL;
}

int find(ElementType X,List PtrL)
{
	int i = 0;
	while(i <= PtrL ->Last&&PtrL ->Data[i]!= X)
		i++;
	if(i >PtrL -> Last)return -1;
	else return i;
}//查找算法